import java.math.BigDecimal;

//手机卡类 特征：卡类型、卡号、用户名、密码、账户余额、通话时长(分钟)、上网流量 行为：显示（卡号 + 用户名 + 当前余额）
public class SIMCard {
    private SimTypeEnum type;    //卡类型
    private String cardID;  //卡号
    private String userName;    //用户名
    private String passWord;    //密码
    private BigDecimal balance; //账户余额
    private double durationOfCall;  //通话时长
    private double data;            //上网流量

    public SIMCard(SimTypeEnum type, String cardID, String userName, String passWord, BigDecimal balance, double durationOfCall, double data) {
        this.type = type;
        this.cardID = cardID;
        this.userName = userName;
        this.passWord = passWord;
        this.balance = balance;
        this.durationOfCall = durationOfCall;
        this.data = data;
    }

    public void show() {
        System.out.println("本卡信息：");
        System.out.println("ID：" + cardID);
        System.out.println("用户名：" + userName);
        System.out.println("当前余额：" + balance);
    }

    public SimTypeEnum getType() {
        return type;
    }

    public double getDurationOfCall() {
        return durationOfCall;
    }

    public double getData() {
        return data;
    }
}
